package com.example.demo.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.Blog;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface Blogservice {
    //List<Blog> selectAll();
   Page<Blog> selectAll(Page<Blog> page, @Param(Constants.WRAPPER) Wrapper<Blog> queryWrapper);
    //List<Blog> selectAll(Integer PageIndex,Integer PageSize);


    Page<Blog> selectAka(Page<Blog> page,@Param("title") String title,@Param("type_id")Integer type_id);
    int dele(int id);
    int inse(Blog blog);

    Page<Blog> selectA(Page<Blog> page,int typeId,int tagIds);
    Blog selectToid(int id);
   int  sel(int id);
    int update(Blog blog);

    int TagselectByia(int id);

    //前台标签
    List<Blog> recommend();
    //日期分类
    List<Blog> selectByU();
    //
    int countasa();

    Map<Integer,List<Blog>> selectma();


    Blog slsct(Long id);
 Page<Blog> selectAkaa(Page<Blog> page,@Param("title") String title);




}
